package com.tiancheng.trade.settlement.vo.settlement.api;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @Author: likailun
 * @Description: 删除清分规则
 * @Date: create in 2022/3/18 4:30 下午
 */

@Data
public class OpenDeleteRuleVO {

    @NotEmpty(message = "业务场景不允许为空")
    @JsonProperty("order_source")
    private String orderSource;

    @Valid
    @NotEmpty(message = "商品信息不允许为空")
    private List<Product> products;

    @Data
    public static class Product{
        /**
         * 商户编号
         */
        @NotEmpty(message = "商户编号不允许为空")
        @JsonProperty("merchant_code")
        private String merchantCode;

        /**
         * 产品编号
         */
        @NotEmpty(message = "交易中台产品编号不允许为空")
        @JsonProperty("product_code")
        private String productCode;
    }

}
